import { ProLayoutProps } from '@ant-design/pro-layout';
import {
  AppstoreOutlined,
  BugOutlined,
  DeploymentUnitOutlined,
  JavaOutlined,
} from '@ant-design/icons';
import React from 'react';

const menuDataRender: ProLayoutProps['menuDataRender'] = (menuData) => {
  return [
    { path: '/', name: '主页', icon: <BugOutlined /> },
    {
      path: '/agent',
      name: '组建管理',
      icon: <JavaOutlined />,
      children: [
        {
          path: '/agent/comp',
          name: '应用管理',
          icon: <AppstoreOutlined />,
        },
        {
          path: '/agent/deploy',
          name: '应用部署',
          icon: <DeploymentUnitOutlined />,
        },
      ],
    },
  ];
};

export default menuDataRender;
